package huy.mmt.gamelathinh.components;

import huy.mmt.gamelathinh.config.Config;

public class Difficulty {
	public int x, y;// so cot choi

	// Buoc 2: Lay ra gia tri hang cot de tao ra doi tuong choi vi lay la 4
	// hang`
	public int getY() {
		if (Config.Do_kho == 1) {
			switch (Level.level_current) {
			case 1:
				y = 2; // 3
				break;
			case 2:
				y = 2; // 4
				break;
			case 3:
				y = 2; //5
				break;
			case 4:
				y = 4; // 5
				break;
			case 5:
				y = 6; // 4
				break;
			default:
				break;
			}
		}
		if (Config.Do_kho == 2) {
			switch (Level.level_current) {
			case 1:
				y = 4;
				break;
			case 2:
				y = 5;
				break;
			case 3:
				y = 5;
				break;
			case 4:
				y = 6;
				break;
			case 5:
				y = 6;
				break;
			default:
				break;
			}
		}
		if (Config.Do_kho == 3) {
			switch (Level.level_current) {
			case 1:
				y = 6;
				break;
			case 2:
				y = 6;
				break;
			case 3:
				y = 6;
				break;
			case 4:
				y = 7;
				break;
			case 5:
				y = 8;
				break;
			default:
				break;
			}
		}
		return y;
	}

	public int getX() {
		if (Config.Do_kho == 1) {
			switch (Level.level_current) {
			case 1:
				x = 3;  
				break;
			case 2:
				x = 4; 
				break;
			case 3:
				x = 5;
				break;
			case 4:
				x = 5;
				break;
			case 5:
				x = 4;
				break;
			default:
				break;
			}
		}
		if (Config.Do_kho == 2) {
			switch (Level.level_current) {
			case 1:
				x = 4;
				break;
			case 2:
				x = 4;
				break;
			case 3:
				x = 6;
				break;
			case 4:
				x = 6;
				break;
			case 5:
				x = 8;
				break;
			default:
				break;
			}
		}
		if (Config.Do_kho == 3) {
			switch (Level.level_current) {
			case 1:
				x = 5;
				break;
			case 2:
				x = 7;
				break;
			case 3:
				x = 10;
				break;
			case 4:
				x = 10;
				break;
			case 5:
				x = 10;
				break;
			default:
				break;
			}
		}
		return x;
	}

}
